package cn.home.sysmanagement.service;

import java.util.List;
import cn.home.sysmanagement.domain.HomeMedicine;

/**
 * 药品Service接口
 * 
 * @author homedoctor
 * @date 2025-04-09
 */
public interface IHomeMedicineService 
{
    /**
     * 查询药品
     * 
     * @param id 药品主键
     * @return 药品
     */
    public HomeMedicine selectHomeMedicineById(Long id);

    /**
     * 查询药品列表
     * 
     * @param homeMedicine 药品
     * @return 药品集合
     */
    public List<HomeMedicine> selectHomeMedicineList(HomeMedicine homeMedicine);

    /**
     * 新增药品
     * 
     * @param homeMedicine 药品
     * @return 结果
     */
    public int insertHomeMedicine(HomeMedicine homeMedicine);

    /**
     * 修改药品
     * 
     * @param homeMedicine 药品
     * @return 结果
     */
    public int updateHomeMedicine(HomeMedicine homeMedicine);

    /**
     * 批量删除药品
     * 
     * @param ids 需要删除的药品主键集合
     * @return 结果
     */
    public int deleteHomeMedicineByIds(Long[] ids);

    /**
     * 删除药品信息
     * 
     * @param id 药品主键
     * @return 结果
     */
    public int deleteHomeMedicineById(Long id);
}
